package org.sport.dbInterface;

import org.sport.model.entityModel.GrouplinkuserEntity;
import org.sport.model.entityModel.GrouptableEntity;
import org.sport.model.entityModel.UsertableEntity;

import java.util.List;

/**
 * Created by Allen on 2017/9/28.
 */
public interface GroLinkUserOperation {
    /**
     * 增加一个User进入Group
     * */
    boolean         addOneData(GrouplinkuserEntity gl);


    /**
    * 删除一个User从Group
    * */
    boolean         delOneLine(GrouplinkuserEntity gl);

    /**
    * 查找一个Group的所有User
    * */
    List<UsertableEntity> findOneGroupAllUsers(GrouptableEntity group);

    /**
     * 查找一个User的所有Group
     * */
    List<GrouptableEntity> findOneUserAllGroup(UsertableEntity user);
}
